#ifndef __FONT_H
#define __FONT_H

/** 
 * Provide a font wrapper
 */
class Font
{
public :
	void set_pos (float x, float y){m_x = x ; m_y = y;}

	void print (float x, float y, const char * msg)
	{

		std::string str = msg ; 
		print (x, y, str) ;
	}
	void print (float x, float y, const std::string & str)
	{
		glRasterPos2f(x, y) ;
		this->print_string (str);
	}
protected :
	void print_string (const std::string & str)
	{
		glDisable (GL_DEPTH_TEST);
		glColor3f (1.0, 1.0, 1.0);
		for (unsigned i = 0; i < str.size(); ++i)
			glutBitmapCharacter (GLUT_BITMAP_HELVETICA_18, str[i]);
	}
protected :
	
private :
	float m_x , m_y ;
};

#endif
